﻿using UnityEngine;

public class BrownTreasureBox : ITreasureBox
{
    protected override void OnFinishOpen()
    {
        base.OnFinishOpen();
        WeaponFactory.Instance.GetPlayerWeaponObj(GetWeaponType(), transform.Find("WeaponCreatePoint").position);
    }
    private PlayerWeaponType GetWeaponType()
    {
        if (ModelContainer.Instance.GetModel<SceneModel>().sceneName == SceneName.MiddleScene)
        {
            switch (Random.Range(0, 5))
            {
                case 0:
                    return PlayerWeaponType.Furnace;
               
            }
        }
        

        return PlayerWeaponType.BadPistol;
    }
}
